package com.sinosoft.report;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.compass.annotations.Searchable;
import org.compass.annotations.SearchableId;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

@Entity
@Table(name="ZYWX_FTP_FILEOBJECT")
@Cache(usage= CacheConcurrencyStrategy.READ_WRITE)
@Searchable
public class FileObject {
	
	private String id;
	private String filename;
	private String opertype;
	private Date createtime;
	private String createuser;
	private String createip;
	private Long filesize;
	private String satelliteid;
	private String sensorid;
	private String productlevel;
	
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@SearchableId
	@Column(name = "ID")
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	@Column(name = "SATELLITEID")
	public String getSatelliteid() {
		return satelliteid;
	}
	public void setSatelliteid(String satelliteid) {
		this.satelliteid = satelliteid;
	}
	@Column(name = "FILENAME")
	public String getFilename() {
		return filename;
	}
	public void setFilename(String filename) {
		this.filename = filename;
	}
	@Column(name = "OPERTYPE")
	public String getOpertype() {
		return opertype;
	}
	public void setOpertype(String opertype) {
		this.opertype = opertype;
	}
	@Column(name = "CREATETIME")
	public Date getCreatetime() {
		return createtime;
	}
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	@Column(name = "CREATEUSER")
	public String getCreateuser() {
		return createuser;
	}
	public void setCreateuser(String createuser) {
		this.createuser = createuser;
	}
	@Column(name = "CREATEIP")
	public String getCreateip() {
		return createip;
	}
	public void setCreateip(String createip) {
		this.createip = createip;
	}
	@Column(name = "FILESIZE")
	public Long getFilesize() {
		return filesize;
	}
	public void setFilesize(Long filesize) {
		this.filesize = filesize;
	}
	
	@Column(name = "SENSORID")
	public String getSensorid() {
		return sensorid;
	}
	public void setSensorid(String sensorid) {
		this.sensorid = sensorid;
	}
	@Column(name = "PRODUCTLEVEL")
	public String getProductlevel() {
		return productlevel;
	}
	public void setProductlevel(String productlevel) {
		this.productlevel = productlevel;
	}
}
